package com.hz.service.impl;

import com.hz.dao.TypeofclothingDao;
import com.hz.pojo.Typeofclothing;
import com.hz.service.TypeofclothingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class TypeofclothingServiceImpl implements TypeofclothingService {
    @Resource
    TypeofclothingDao typeofclothingDao;
    @Override
    public List<Typeofclothing> getAllTypeofclothing() throws Exception {

        return typeofclothingDao.getAllTypeofclothing();
    }

    @Override
    public Typeofclothing getTypeofclothing(Long dry_id) throws Exception {
        return typeofclothingDao.getTypeofclothing(dry_id);
    }
}
